package com.gcb.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToOne;

/**
 * @author Cre.Gu
 * 
 */
@Entity
public class ChannelExt implements Serializable {
	private static final long serialVersionUID = -5754264628817705088L;

	@Id
	@Column(name = "channel_id")
	protected Long id;

	@OneToOne(mappedBy = "channelExt")
	private Channel channel;

	/**
	 * 栏目名称
	 */
	private String name;

	public static ChannelExt create() {
		ChannelExt ext=new ChannelExt();
		ext.setName("栏目");
		
		return ext;
	}
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Channel getChannel() {
		return channel;
	}

	public void setChannel(Channel channel) {
		this.channel = channel;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
